<!DOCTYPE html>
<html>
<head>
    <title>Lotus ChainWatch</title>
    <link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="Index">
    <div class="Index-header">
        <div>
            <span>Lotus ChainWatch - Wallets</span>
        </div>
    </div>
    <div class="Index-nodes">
        <div class="Index-node">
           {{range strings "id_address_map" "address" "address != id"}}
               {{$addr := .}}
               <div>
                   <a href="key.html?w={{$addr}}">{{$addr}}</a>
                   <span><b>{{qstr "select count(distinct cid) from messages where \"from\"=$1" $addr}}</b> outmsgs;</span>
                   <span><b>{{qstr "select count(distinct cid) from messages where \"to\"=$1" $addr}}</b> inmsgs</span>
               </div>
           {{end}}
        </div>
    </div>
</div>
</body>
</html>
